﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
namespace JinfuyuanProject.Entity
{
    /// <summary>
    /// 
    ///</summary>
    public class Services
    {

        [Key]
        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        public int Id { get; set; }

        [Required(ErrorMessage = "服务名称不能为空")]
        [StringLength(100, MinimumLength = 2, ErrorMessage = "服务名称长度必须在2-100个字符之间")]
        public string ServiceName { get; set; }

        [Range(0.01, double.MaxValue, ErrorMessage = "服务价格必须大于0")]
        public decimal ServicePrice { get; set; }

        [Range(1, 52, ErrorMessage = "起始周必须是1-52之间的数字")]
        public int SerStartTime { get; set; }

        public int? ServiceInterval { get; set; }
        public int? ServiceThreshold { get; set; }
        public int ServiceType { get; set; }
        public int? ServiceCount { get; set; }
        public DateTime CreateTime { get; set; }
        public int IsDelete { get; set; }
    }
    
}